Play with printf()


Problem 1: Body


Write the BODY of a C program.

#include<stdio.h>int main(){// This is  the main body    return 0;}

Problem 2: Hello World


Write a program to print the following output:
Hello world!!!

#include<stdio.h> int main(){     printf("Hello World!!!");     return 0;}

Problem 3: Print

Write a code to print the following output:

Name:   sakil mia
University:   Daffodil International University


#include<stdio.h>
int main()
{
printf("Name:\tsakil mia\n");
printf("University:\tDaffodil International University\n");
return 0;
}




No comments

Powered by Blogger.