Saturday, 13 January 2018

Today what day?

Program in C language using switch case:

#include<stdio.h>
#include<conio.h>

void main()
{
char ch;
        clrscr();
        printf("what day today?\n");
        scanf("%c", & ch);
      switch(ch)
      {
                        case 'a' :printf("Sunday");
            break;
            case 'b' :printf("Monday");
            break;
            case 'c' :printf("Tuesday");
            break;
            case 'd' :printf("Wednesday");
            break;
            case 'e' :printf("Thursday");
            break;
            case 'f' :printf("Friday");
            break;
            case 'g' :printf("Saturday");
            break;
            default:printf("Invalid day");
        }
      getch();
}

OUTPUT:(for example) 
         what day today?
         g
 Saturday

In the above content, is contain any mistake, or any doubt. Drop your comments on the comment box.It is simplest program



Friday, 5 January 2018

How to execute my name number of times in c language?

Program in C language:

#include<stdio.h>
#include<conio.h>

void main()
{
char c[20];
int n,i;
clrscr();
printf("Enter the number =");
scanf("%d",&n);
printf("Enter your name=");
scanf("%s",c);
for(i=1;i<=n;i++)
{
    printf("Your name is=%s\n") ;
        }
getch();
}
OUTPUT:for an example 
    Enter the number =3
   Enter your name =karthick
 
    Your name is=karthick
   Your name is=karthick
    Your name is=karthick

The above program is execute your names number of times. If there is any mistake or doubt in this program, comment below.
    SUPPORT&SHARE!!!!
The bove

Thursday, 4 January 2018

How to get the input string from user (another way)

Program in C language :3(Another way) 

#include<stdio.h>
#include<conio.h>

void main()
{
char s[20];
clrscr();
printf("Enter your name:");
gets(s);
printf("your name is:");
puts(s);
getch();
}

OUTPUT :
your name is:
ex:
Enter your name:Karthick raja
your name is:Karthick raja

The above example is another way of getting input from user and execute. If you have any mistake or doubt in that,comment below.... 

Wednesday, 3 January 2018

How to get the input from user and execute

Program in C language :2

#include<stdio.h>
#include<conio.h>

void main()
{
char c[20];
printf("Enter your name");
scanf("%s", c);
printf("Your name is:%s",c);
getch();
}

OUTPUT:
Your name is:___

  The above program is to get input string from user and execute. It is simple program in C language. If there is any mistake or doubts, drop your comments. 

Tuesday, 2 January 2018

How to write the code for your name

Program in C language:

#include<iostream. h>
#include<conio. h>

void main()
{
printf("MY NAME IS___") ;//what you have to execute written in the double quotation mark...
        getch() ;
}

OUTPUT:
MY NAME IS___

The above program is execute your name or college name., So,if you have any doubt in that drop your questions in the comment box. 

Tik Tok ban?

Hello buddy's, it's good to see you. So, What happens to Tik Tok? Is Tik Tok ban? Here is the answer for everything. Madurai benc...