Computer Science, asked by rudranshmishra239, 2 months ago

write a program to expand number of week from the keyboard and convert them into days

Answers

Answered by basudevasantha
0

Answer:

Cuttack diagram Gautam Jain World shreshth laksh

Explanation:

tiff Ocean City MD Arif Hossain Rubel Hossain and same to you and your family and friends and family welfare govt of India Today group to offer online learning to young people

Answered by dreamrob
0

Program in C++

#include<iostream>

using namespace std;

int main ()

{

int weeks , days;

cout<<"Enter number of weeks : ";

cin>>weeks;

days = weeks * 7;

cout<<"Total number of days = "<<days;

return 0;

}

Program in JAVA

import java.util.*;

public class MyClass

{

   public static void main(String args[])

   {

       Scanner Sc = new Scanner(System.in);

       int weeks , days;

       System.out.print("Enter number of weeks : ");

       weeks = Sc.nextInt();

       days = weeks * 7;

       System.out.print("Total number of days = " + days);

   }

}

Similar questions